const policiesRouter = require('./policiesRouter.js');
const usersRouter = require('./usersRouter');
const classesRouter = require('./classesRouter');
const outlinesRouter = require('./outlinesRouter');
const initRouter = require('./initRouter');
const itemsRouter = require('./itemsRouter');
const papersRouter = require('./papersRouter');
const answersRouter = require('./answersRouter');
const menusRouter = require('./menusRouter');

exports.plugin = {
  name: 'indexRouter',
  register: async (server) => {
    await server.register([
      usersRouter,
      policiesRouter,
      classesRouter,
      outlinesRouter,
      initRouter,
      itemsRouter,
      papersRouter,
      answersRouter,
      menusRouter,
    ]);
  },
};
